<template>
	<view class="addressManage">
		<view class="content">
			<u-swipe-action>
				<view class="actionItem">
					<u-swipe-action-item :options="options">
						<view class="adItem">
							<view class="itTop">
								<view class="topLeft">
									<view class="default">
										<text>默认</text>
									</view>
									<text class="topP">张先生</text>
									<text class="topP2">13514234123</text>
								</view>
								<view class="topRight">
									<view class="iconfont icon-fuzhi">
									</view>
									<view class="iconfont icon-bianji3 rightIcon">
									</view>
								</view>
							</view>
							<view class="position">
								<view class="iconfont icon-dingwei1">
								</view>
								<text>广东省东莞市东城街道君豪商业中心</text>
							</view>
						</view>
					</u-swipe-action-item>
				</view>
				<view class="actionItem">
					<u-swipe-action-item :options="options">
						<view class="adItem">
							<view class="itTop">
								<view class="topLeft">
									<text class="topP">张先生</text>
									<text class="topP2">13514234123</text>
								</view>
								<view class="topRight">
									<view class="iconfont icon-fuzhi">
									</view>
									<view class="iconfont icon-bianji3 rightIcon">
									</view>
								</view>
							</view>
							<view class="position">
								<view class="iconfont icon-dingwei1">
								</view>
								<text>广东省东莞市东城街道君豪商业中心</text>
							</view>
						</view>
					</u-swipe-action-item>
				</view>
			</u-swipe-action>
		</view>
		<view class="commonBtn" @tap="goto('pages/owns/address/receivingAddressAdd')">
			<view class="btnCon">
				<text>新增地址</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: [{
					icon: 'trash-fill',
					iconSize: '25',
					style: {
						backgroundColor: 'transparent',
						color: 'red'
					}
				}]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.addressManage {
		position: relative;

		.actionItem {
			margin-top: 24rpx;
		}

		.content {
			padding: 0 32rpx;

			.adItem {
				background-color: #fff;
				padding: 24rpx;
				border-radius: 16rpx;

				.itTop {
					display: flex;
					align-items: center;
					justify-content: space-between;

					.topLeft {
						display: flex;
						align-items: center;

						.default {
							width: 52rpx;
							height: 32rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							border-radius: 4rpx;
							background: #EEFAF6;
							color: rgb(68, 212, 168);
							font-size: 20rpx;
							margin-right: 8rpx;
						}

						.topP {
							font-size: 28rpx;
							font-weight: bold;
							color: rgba(54, 68, 79, 1);
							margin: 0 16rpx 0 8rpx;
						}

						.topP2 {
							color: rgba(94, 103, 110, 1);
						}
					}

					.topRight {
						display: flex;
						align-items: center;
						
						.iconfont{
							font-size: 32rpx;
						}

						.rightIcon {
							margin-left: 32rpx;
						}
					}
				}

				.position {
					display: flex;
					align-items: center;
					font-size: 24rpx;
					font-weight: 400;
					margin-top: 24rpx;

					.iconfont {
						font-size: 35rpx;
						margin-right: 11rpx;
					}
				}
			}
		}
	}

	.u-swipe-action-item__content {
		border-radius: 16rpx;
	}

	::v-deep .u-swipe-action-item__content {
		border-radius: 16rpx;
	}
</style>